//package com.kfh.ybracelet.widget;
//
//import android.content.Context;
//import android.util.AttributeSet;
//import android.widget.ImageView;
//
///**
// * 聊天的缩略图片
// * Created by Aaron on 16/6/20.
// */
//public class PreImageView extends ImageView {
//
//    private Context ctx;
//
//    public PreImageView(Context context) {
//        this(context, null);
//    }
//
//    public PreImageView(Context context, AttributeSet attrs) {
//        this(context, attrs, 0);
//    }
//
//    public PreImageView(Context context, AttributeSet attrs, int defStyleAttr) {
//        super(context, attrs, defStyleAttr);
//
//        this.ctx = context;
//    }
//
//
////    @Override
////    public boolean dispatchTouchEvent(MotionEvent event) {
////
////
////
////        return super.dispatchTouchEvent(event);
////    }
////
////
////    @Override
////    public boolean onTouchEvent(MotionEvent event) {
////
////        switch (event.getAction()) {
////
////            case MotionEvent.ACTION_DOWN:
////
//////                getParent().requestDisallowInterceptTouchEvent(true);
////
////                LogUtil.e("tag", "  =====  手指按下  =====  ");
////
////                return true;
////
////            case MotionEvent.ACTION_UP:
////
////                LogUtil.e("tag", "  =====  手指抬起  =====  ");
////
////                //隐藏软键盘 并且 显示大图
////
////                if (showPicListener!=null) {
////                    showPicListener.onClickListener();
////                }
////
////                break;
////
////            case MotionEvent.ACTION_MOVE:
////
////                LogUtil.e("tag", "  =====  手指移动  =====  ");
////
//////                getParent().getParent().requestDisallowInterceptTouchEvent(true);
////
////                break;
////
////        }
////
////        return true;
//////        return super.onTouchEvent(event);
////    }
////
////    private ShowPicListener showPicListener;
////
////    public void setShowPicListener(ShowPicListener showPicListener) {
////        this.showPicListener = showPicListener;
////    }
////
////   public interface ShowPicListener {
////        void onClickListener();
////    }
//
//}
